aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatInstructionsTests]/[method:canSerializeTryWithCatchBlocks(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
blob: df7cbb46e2ec85c7bb6a31dda9ca63fa561225ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
module.wasm:	file format wasm 0x1

Section Details:

Type[1]:
 - type[0] () -> nil
Function[1]:
 - func[0] sig=0 <f>
Tag[2]:
 - tag[0] sig=0
 - tag[1] sig=0
Code[1]:
 - func[0] size=24 <f>
Custom:
 - name: "linking"
  - symbol table [count=3]
   - 0: F <f> func=0 [ binding=global vis=default ]
   - 1: E <Error1> tag=0 [ binding=global vis=default ]
   - 2: E <Error2> tag=1 [ binding=global vis=default ]
Custom:
 - name: "reloc.CODE"
  - relocations for section: 3 (Code) [2]
   - R_WASM_TAG_INDEX_LEB offset=0x00000c(file=0x000037) symbol=1 <Error1>
   - R_WASM_TAG_INDEX_LEB offset=0x000014(file=0x00003f) symbol=2 <Error2>
Custom:
 - name: "name"
 - func[0] <f>
 - tag[0] <Error1>
 - tag[1] <Error2>

Code Disassembly:

000031 func[0] <f>:
 000032: 06 7f                      | try i32
 000034: 41 2a                      |   i32.const 42
 000036: 07 80 80 80 80 00          | catch 0
 00003c: 41 2f                      |   i32.const 47
 00003e: 07 81 80 80 80 00          | catch 1
 000044: 41 34                      |   i32.const 52
 000046: 0b                         | end
 000047: 1a                         | drop
 000048: 0b                         | end